package com.qf.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qf.blog.entity.User;
import com.qf.blog.enums.ExceptionEnum;
import com.qf.blog.vo.LetterVo;
import com.qf.blog.vo.UserToken;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface IUserService  extends IService<User> {

    List<LetterVo> queryMessages();

    boolean register(User user);


    UserToken login(User user);

    Boolean activate(String code) throws Exception;


    Boolean updatePwd(Integer userId, String oldPassword, String newPassword);

    User getUserByColumn(String column, String value);

    boolean updateAvatar(String headerUrl);

    void sendEmail(User user);

    String verifyEmail(String userId);

    void resetPwd(User user,String code);
}
